package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单历史对象 order_history
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
public class OrderHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单历史ID */
    private Long orderHistoryId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long bookingId;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 订单详情 */
    @Excel(name = "订单详情")
    private String orderDetail;

    /** 订单价格 */
    @Excel(name = "订单价格")
    private Long orderPrice;

    public void setOrderHistoryId(Long orderHistoryId) 
    {
        this.orderHistoryId = orderHistoryId;
    }

    public Long getOrderHistoryId() 
    {
        return orderHistoryId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBookingId(Long bookingId) 
    {
        this.bookingId = bookingId;
    }

    public Long getBookingId() 
    {
        return bookingId;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setOrderDetail(String orderDetail) 
    {
        this.orderDetail = orderDetail;
    }

    public String getOrderDetail() 
    {
        return orderDetail;
    }
    public void setOrderPrice(Long orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public Long getOrderPrice() 
    {
        return orderPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderHistoryId", getOrderHistoryId())
            .append("userId", getUserId())
            .append("bookingId", getBookingId())
            .append("orderDate", getOrderDate())
            .append("orderDetail", getOrderDetail())
            .append("orderPrice", getOrderPrice())
            .toString();
    }
}
